export const tableOption = {
  dialogDrag: true,
  border: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menuType: 'text',
  searchShow: false,
  excelBtn: true,
  printBtn: true,
  viewBtn: true,
  searchMenuSpan: 6,
  column: [
    {
      label: '站点名',
      prop: 'name',
      rules: [
        {
          required: true,
          message: '请输入站点名',
          trigger: 'blur'
        },
        {
          max: 100,
          message: '长度在不能超过100个字符'
        },
      ]
    },
    {
      label: '站点编码',
      prop: 'siteCode',
      rules: [
        {
          required: true,
          message: '请输入站点编码',
          trigger: 'blur'
        },
        {
          max: 32,
          message: '长度在不能超过32个字符'
        },
      ]
    },
    {
      label: '地址',
      prop: 'address',
      formslot: true,
      rules: [
        {
          required: true,
          message: '请选择地址',
          trigger: 'blur'
        }
      ]
    },
    // {
    //   label: '联系人',
    //   prop: 'realname',
    //   width: 100
    // },
    // {
    //   label: '电话号码',
    //   prop: 'phone',
    //   width: 100
    // },
    {
      label: '是否显示',
      prop: 'enable',
      type: 'radio',
      search: true,
      sortable: true,
      span: 24,
      slot: true,
      rules: [{
        required: true,
        message: '请选择显示状态',
        trigger: 'blur'
      }],
      dicData: [{
        label: '关闭',
        value: '0'
      }, {
        label: '启用',
        value: '1'
      }]
    },
  ]
}
